import Vue from "vue";
import VueRouter from "vue-router";
import Recommended from "../views/Recommended.vue";
import Rank from "../views/Rank.vue";
import Search from "../views/Search.vue";
import Ranking from "../views/Ranking.vue";
// import RankList from "../views/RankList.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Recommended",
    component:Recommended,
    meta: {
      showNav: true,
    },
  },
  {
    path: "/rank",
    name: "Rank",
    component: Rank,
    meta: {
      showNav: true,
    },
  },
  {
    path: "/search",
    name: "Search",
    component: Search,
    meta: {
      showNav: true,
    },
  },

  // {
  //   path: "/playlist",
  //   name: "PlayList",
  //   component: PlayList,
  // },
  {
    path: "/ranking",
    name: "Ranking",
    component: Ranking,
  },

  // {
  //   path: "/ranklist",
  //   name: "RankList",
  //   component: RankList,
  // },

  // {
  //   path: '/hot',
  //   name: 'Hot',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
];

const router = new VueRouter({
  routes,
});

export default router;
